Repository navigation
Conversation
houko
force-pushed
the
feat/editor-viewport-overlays-1006
branch
from
November 26, 2026 11:40
3a229c0 to
51e0079
Compare
houko
force-pushed
the
feat/editor-viewport-overlays-1006
branch
from
November 26, 2026 11:59
51e0079 to
45da115
Compare
houko
force-pushed
the
feat/editor-viewport-overlays-1006
branch
from
November 26, 2026 12:11
45da115 to
57dc151
Compare
houko
force-pushed
the
feat/editor-viewport-overlays-1006
branch
from
November 26, 2026 12:30
57dc151 to
9f117d0
Compare
houko
force-pushed
the
feat/editor-viewport-overlays-1006
branch
from
November 26, 2026 12:34
9f117d0 to
234541a
Compare
houko
force-pushed
the
feat/editor-viewport-overlays-1006
branch
from
November 26, 2026 12:39
234541a to
4e30108
Compare
houko
force-pushed
the
feat/editor-viewport-overlays-1006
branch
from
November 26, 2026 12:40
4e30108 to
836d8d5
Compare
houko
force-pushed
the
feat/editor-viewport-overlays-1006
branch
from
November 26, 2026 12:48
836d8d5 to
86ad895
Compare
houko
force-pushed
the
feat/editor-viewport-overlays-1006
branch
from
November 26, 2026 12:58
86ad895 to
69f9f54
Compare
houko
force-pushed
the
feat/editor-viewport-overlays-1006
branch
from
November 26, 2026 17:48
69f9f54 to
975c90f
Compare
houko
force-pushed
the
feat/editor-viewport-overlays-1006
branch
from
November 26, 2026 17:52
975c90f to
a28b806
Compare
houko
force-pushed
the
feat/editor-viewport-overlays-1006
branch
from
November 26, 2026 17:59
a28b806 to
d84a28d
Compare
…3D/History guards, and connection attribution
houko
force-pushed
the
feat/editor-viewport-overlays-1006
branch
from
November 26, 2026 18:16
d84a28d to
0d37d2b
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements the Spec viewport overlay line styles and shared top-left toggle legend from
docs/design/editor/Spec.dc.html("Overlay legend") andMain.dc.html:DrawObjectOverlay) & live API (SceneOverlayEntry,SetSceneOverlays) inpackages/game/editor/viewport_overlay.gousing exclusivelySpecPalettetokens across both 2D and 3D viewports:Holdinguses 45% dashed + clock glyph)."+ name"pill."field old → new"pill."removed"pill.Problem.Fg/Problem.OnFill) with alert triangle icon and message.OverlaySelectionAgentGap) with stacked pill.OverlayFadeAlpha) and 1.6 s Agent pulse (OverlayAgentPulseAlpha); withReduceMotionenabled, overlays appear immediately at 100%, Agent stays solid at 100%, and no animation timer runs.viewport-overlay-legend): Six accessiblerole="switch"rows (Selection, Agent working, Added, Changed, Removed, Problem) with drawn line-style + second-cue swatches across 2D and 3D viewports, persisted per person inEditorSettings.OverlayLegend(overlayLegendineditor-settings.v1.json) outside project files.assetcheck.Problem.Object): Populated on scene object, component, override, and connection diagnostics (and exposed ineditormcp'sgame_check) so live Problem overlays attach directly to objects in 2D and 3D viewports.SpecPaletteTextMuted/TextFainthairline and2, 4dotted strokes distinct from all legend kinds.docs/en/editor.md,docs/zh/editor.md,docs/en/formats.md,docs/zh/formats.md, addedchangelog.d/editor-viewport-overlays-1006.md, and recorded the decision note in.agents/notes/implemented/feature/2026-11-26-editor-spec-viewport-overlays-legend.md.Closes #1006
Verification
go run ./tools/changelog check— passed (377 fragments)bun run verify-notes— passed (249 notes + 2 archive seals)gofmt -lacross all Go files — cleancd packages/game && go run ./cmd/gameschema -check&go tool nsgo test ./cmd/gameschema/...— passed (25/25)cd packages/game && go tool nsgo check -target macos_arm64— vetted cleanlycd packages/game && go tool nsgo test ./gametest/...— passed (13/13)cd packages/game && go tool nsgo test ./tooling/assetcheck/...— passed (48/48)cd packages/game && go tool nsgo test ./editor/editormcp/...— passed (65/65)cd packages/game && go tool nsgo test ./editor/editorcmd/...— passed (37/37)cd packages/game && go tool nsgo test ./editor -- -run "^(TestViewportOverlay|TestCameraFrameBounds|TestViewport3DPansWithMiddleShiftAndTouchpad|TestSnapGridPlaceAndDragSavesMultiplesOf16|TestSpecTheme|TestSpecContrast|TestEditorSystemAppearanceLiveSwitchWithoutRestart)"— passed (19/19, including 1x & 2x golden PNGs, greyscale distinguishability, reduced motion, legend toggle restart persistence, 2D+3D problem integration, and neutral guide token checks)cd packages/game && go tool nsgo test -target macos -run "^TestViewportOverlaysSpecMacOSScreenshot$" ./editor— passed on native macOS